﻿#region 命名空间

using Microsoft.Practices.Unity.InterceptionExtension;

#endregion

namespace Sharp.Infrastructure.Crosscutting
{
    /// <summary>
    ///     事务定制特性
    /// </summary>
    public class TransactionAttribute : HandlerAttribute
    {
        /// <summary>
        ///     创建处理器
        /// </summary>
        /// <param name="container"></param>
        /// <returns></returns>
        public override ICallHandler CreateHandler(Microsoft.Practices.Unity.IUnityContainer container)
        {
            return new TransactionHandler() {Order = Order};
        }
    }
}